import request from '@/utils/request'

export function getDeliver(data) {
  return request({
    url: '/prize/getLogistic-name',
    method: 'post',
    data
  })
}

export function getMobileDispatchs(data) {
  return request({
    url: '/prize/mobile-page',
    method: 'post',
    data
  })
}
export function getDispatchs(data) {
  return request({
    url: '/prize/page',
    method: 'post',
    data
  })
}

export function addDispatch(data) {
  return request({
    url: '/prize/insert',
    method: 'post',
    data
  })
}

export function deleteDispatch(data) {
  return request({
    url: '/prize/delete',
    method: 'post',
    data
  })
}

export function updateDispatch(data) {
  return request({
    url: '/prize/update',
    method: 'post',
    data
  })
}
// 物流信息
export function getLocation(data) {
  return request({
    url: '/prize/getLogistic',
    method: 'post',
    data
  })
}
// 物流信息
export function getMapJSON() {
  return request({
    url: '/admin/address',
    method: 'get'
  })
}
// 物流信息
export function parseAdress(data) {
  return request({
    url: '/prize/get-address-details',
    method: 'post',
    data
  })
}
